package com.mz.ozy.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mz.ozy.R;
import com.mz.ozy.bean.NewGQBean;
import com.mz.ozy.utils.Utils;

import java.util.List;

/**
 *
 */

public class MyGQAdapter extends BaseQuickAdapter<NewGQBean.PageDTO.PageItemsDTO, BaseViewHolder> {

    public MyGQAdapter(List<NewGQBean.PageDTO.PageItemsDTO> data) {
        super(R.layout.item_my_gq, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NewGQBean.PageDTO.PageItemsDTO item) {

        helper.setText(R.id.tv_order_seq, item.time);
        helper.setTextColor(R.id.tv_operate_state, mContext.getResources().getColor(R.color.c_73b21a));
        helper.setText(R.id.tv_operate_state, Utils.decimalUtils(item.amount, 2));

    }
}
